package com.kuangshenJVM.chapter12;

import sun.misc.Launcher;

public class Test12 extends Launcher {
    static {
        System.out.println("Test12 static init ...");
    }
    public static void main(String[] args) {
        System.out.println("Test12 main Begin");
        Son a = new Son();
        System.out.println(Son.width);
        Son b = new Son();
    }
}
class Son extends Father{
    public static int width = 60;
    static{
        System.out.println("Initialize class Son");
        width = 30;
    }
    public Son(){
        System.out.println("Son init ...");
    }
}
class Father{
    static {
        System.out.println("Initialize class Father");
    }
}


